<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="page" uri="/WEB-INF/paging.tld"%>
<%
 String path = request.getContextPath();
 String basePath = request.getScheme()+"://"+request.getServerName()+":"+
         request.getServerPort()+path+"/";
 out.print(basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<style type="text/css">
.tab{width:760px;margin-left:auto;margin-right:auto; text-align: center;}
.tab tr{color: #423e3e;}
.tab tr:nth-child(even){background-color: #f9d1d1;}
.tab tr:nth-child(odd){background-color: #c7f5c7;} 
.tab tr:nth-child(1){background-color: #8ee68e;}
.tab tr td:nth-child(1){width:120px;}
.tab tr td:nth-child(2){width:80px;}
.tab tr td:nth-child(3){width:80px;}
.tab tr td:nth-child(4){width:120px;}
.tab tr td:nth-child(5){width:120px;}
.tab tr td:nth-child(6){width:120px;}
.tab tr td:nth-child(7){width:80px;}
.tab tr td:nth-child(8){width:80px;}
.pageTd{height: 40px;}
.pageTd td{position: relative;}
 .pageUl{margin:0px;padding:0px;position: absolute;right: 10px;bottom:10px;}
 .pageUl > li {list-style-type: none;float:left;margin-left:10px;}
 .pageUl > li a{text-decoration: none;}
 .pageUl:after{display: block;clear: both;content: '';}
 
</style>
</head>
<body>
 <table  class="tab">
  <tr><th>姓名</th><th>姓名</th><th>姓名</th><th>姓名</th><th>姓名</th><th>姓名</th><th>姓名</th><th>姓名</th><th>班级号</th></tr>
  <c:forEach items="${dto.tList}" var="student">
   <tr>
    <td>${student.sno}</td><td>${student.name}</td><td>${student.sex}</td><td>${student.high}</td>
    <td>${student.birthday}</td><td>${student.jointime}</td><td>${student.homephone}</td><td>${student.bedno}</td>
    <td>${student.cno}</td>
    <td><a href="student/update.jsp?sno=${student.sno}">修改</a></td>
   </tr>
  </c:forEach>
  <tr class="pageTd"><td  colspan="8">
   <page:paging href="student/back/page"
    itemCount="${pageInfo.itemCount}"
   currPage="${pageInfo.currPage}"
   pageSize="${pageInfo.pageSize}"
   />
  </td></tr>
  </table>
</body>
</html>